@extends('backend.layouts.default')

@section('title')HR 管理@endsection

@section('brief')HR 管理@endsection

@section('content')
@include('backend.commons.sidebar')
        <!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <!-- BEGIN CONTENT BODY -->
    <div class="page-content">
        <!-- BEGIN PAGE HEADER-->
        @include('backend.commons.title')
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="{{ url('/admin/dashboard') }}">管理首页</a>
                    <i class="fa fa-angle-right"></i>
                </li>
                <li>
                    <span>@yield('title')</span>
                </li>
            </ul>
        </div>
        <!-- END PAGE HEADER-->

        {{--BEGIN SEARCH--}}
        <form action="{{ URL::current() }}" method="get" role="form">
            <div class="form-body">
                <div class="form-group">
                    <label for="">
                        <input type="text" name="query" class="form-control" placeholder="name, mobile or email">
                    </label>
                </div>
            </div>
        </form>
        {{--END SEARCH--}}
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN SAMPLE TABLE PORTLET-->
                <div class="portlet">
                    {{--<div class="portlet-title">--}}
                        {{--<a href="{{ url('/admin/admins/create') }}" class="btn green">--}}
                            {{--<i class="fa fa-plus"></i>--}}
                            {{--新增 HR--}}
                        {{--</a>--}}
                    {{--</div>--}}
                    <div class="portlet-body">
                        <div class="table-scrollable">
                            <table class="table table-striped table-bordered table-advance table-hover">
                                <thead>
                                <tr>
                                    <th width="20%">
                                        名称
                                    </th>
                                    <th width="20%">
                                        推荐数
                                    </th>
                                    <th width="20%">
                                        简历数
                                    </th>
                                    <th width="30%">
                                        最后登陆时间
                                    </th>
                                    {{-- <th width="10%"> 操作 </th> --}}
                                </tr>
                                </thead>
                                <tbody>
                                @forelse($hrs as $hr)
                                    <tr>
                                        <td> {{ $hr->name }} </td>
                                        <td>  </td>
                                        <td>  </td>
                                        <td> {{ $hr->last_logined_at }} </td>
{{--                                         <td>
                                            <a href="{{ url('/admin/hrs/' . $hr->id ) }}" class="btn btn-outline btn-circle btn-sm blue">
                                                <i class="fa fa-edit"></i> 查看 </a>
                                            <a href="javascript:;" class="btn btn-outline btn-circle btn-sm red delete" data-url="{{ url('/admin/hrs/' . $hr->id ) }}" data-redirect="{{ url()->full() }}">
                                                <i class="fa fa-close"></i> 删除 </a>
                                        </td> --}}
                                    </tr>
                                @empty
                                    <tr>
                                        <td colspan="4" height="300px"><center style="line-height: 300px"><i class="fa fa-meh-o"></i>&nbsp;&nbsp;什么都没有</center></td>
                                    </tr>
                                @endforelse
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <!-- END SAMPLE TABLE PORTLET-->

                <div>
                    <ul class="pagination">
                        {{ $hrs->links() }}
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->
</div>
@endsection